package jd.se.message;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageDao {
    // type为0表示为普通消息
    @Insert("insert into message(from_id, to_id, message, time) values(#{from_id},#{to_id},#{message},#{timestamp})")
    void insertMessage(Message message);

    List<MessageTempDto> showMessage(String to_id);
}
